From 372e9d60b924a6075098765ee27d40023874c357 Mon Sep 17 00:00:00 2001 From: Stephen Becker IV Date: Sun, 17 May 2015 09:32:53 -0700 Subject: [PATCH] Fix whitespace Now matches test output. --- src/cargo/util/toml.rs | 2 +- tests/test_cargo_compile.rs | 1 - tests/test_cargo_compile_custom_build.rs | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/cargo/util/toml.rs b/src/cargo/util/toml.rs index 485cc5b09..938b92d12 100644 --- a/src/cargo/util/toml.rs +++ b/src/cargo/util/toml.rs @@ -118,7 +118,7 @@ pub fn to_manifest(contents: &[u8], None => {} } if !manifest.targets().iter().any(|t| !t.is_custom_build()) { - return Err(human(format!("no targets specified in the manifest \neither \ + return Err(human(format!("no targets specified in the manifest\n either \ src/lib.rs, src/main.rs, a [lib] section, or [[bin]] \ section must be present"))) } diff --git a/tests/test_cargo_compile.rs b/tests/test_cargo_compile.rs index 309f445dc..b8de2660c 100644 --- a/tests/test_cargo_compile.rs +++ b/tests/test_cargo_compile.rs @@ -795,7 +795,6 @@ failed to parse manifest at `[..]Cargo.toml` Caused by: no targets specified in the manifest - either src/lib.rs, src/main.rs, a [lib] section, or [[bin]] section must be present\n")); }); diff --git a/tests/test_cargo_compile_custom_build.rs b/tests/test_cargo_compile_custom_build.rs index 0a9789751..65173c83b 100644 --- a/tests/test_cargo_compile_custom_build.rs +++ b/tests/test_cargo_compile_custom_build.rs @@ -954,7 +954,6 @@ failed to parse manifest at `[..]` Caused by: no targets specified in the manifest - either src/lib.rs, src/main.rs, a [lib] section, or [[bin]] section must be present")); }); -- 2.30.2